package com.wyh.edu.service;

import com.wyh.edu.service.fallback.EmailServiceFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wuyuhan
 * @date 2021/2/4 23:56
 */
@FeignClient(value = "servere-mail", path = "/api/email", fallback = EmailServiceFeignClientFallback.class)
public interface EmailServiceFeignClient {
    @GetMapping("/{email}/{code}")
    Boolean sendMail(@PathVariable("email") String email, @PathVariable("code") String checkCode);
}
